package com.wedo.mall.entity;

import android.text.TextUtils;

/**
 * Created by Lawrence on 2017/8/15.
 */

public class SystemMessage {


    /**
     * id : 2
     * agent_id : 6
     * title : 测试个关注商品推送咯
     * image : http://i5.hexunimg.cn/2016-09-12/185985253.jpg
     * type : 0
     * content : 都说测试个关注商品推送咯
     * message_type : 3
     * add_time : 1499014991
     * is_read : 0
     * goods_name : 测试商品1
     * goods_image : /Static/Uploads/Goods/2017-07-22/5972c46962df3.png
     * goods_price : 11.00
     * agent_name : 木木个大西瓜
     */

    public String id;
    public String agent_id;
    public String title;
    public String image;
    public String type;
    public String content;
    public String message_type;
    public long add_time;
    public String is_read;
    public String goods_id;
    public String goods_name;
    public String goods_image;
    public String goods_price;
    public String agent_name;

    public boolean agentGoods(){
        return TextUtils.equals("1",message_type);
    }

    public boolean goods(){
        return TextUtils.equals("3",message_type);
    }

    public boolean system(){
        return TextUtils.equals("0",message_type);
    }

}
